forum

home / developersection / forums / date format comparison issue

Date Format Comparison Issue

marcel ethan 1772 06-Mar-2014

I need to execute an condition where after starting from 150 days from today using the system date format.

String test = DateTime.Now.ToString("dd.MM.yyy");

String test2 =DateTime.Now.AddDays(150).ToString("dd.MM.yyy");

if (test == test2)//Not sure how to do it in IF condition here for date tim

{

}

Any help on this would be great.


c# c# 
Updated on 06-Mar-2014
Can you answer this question?

Answer

1 Answers

Liked By